package org.zjx.data.screen;

import org.zjx.command.entity.screen.Room;
import org.zjx.data.BaseSceneBuilder;

import java.awt.*;

public class QiLinShanSceneBuilder extends BaseSceneBuilder {

    @Override
    protected String getSceneName() {
        return "麒麟山";
    }

    @Override
    protected Dimension getSceneSize() {
        return new Dimension(190, 142);
    }

    @Override
    protected void addMonsters() {

    }

    @Override
    protected void addNpcs() {
        addNpc("有来有去", new Point(111, 109));
        addNpc("布识陆", new Point(168, 84));
        addNpc("超级巫医", new Point(99, 62));
    }

    @Override
    protected void addRooms() {
        Room taiSuiFu = createRoom("太岁府", new Dimension(62, 94));
        addNpcToRoom(taiSuiFu, "赛太岁", new Point(43, 77));
        addNpcToRoom(taiSuiFu, "金圣宫", new Point(25, 69));
        addNpcToRoom(taiSuiFu, "春娇", new Point(4, 44));
        rooms.add(taiSuiFu);
    }

    @Override
    protected void addTeleports() {
        addSceneTeleport(new Point(179, 3), "朱紫国", new Point(8, 110), new Point(181, 2));
        addSceneTeleport(new Point(81, 2), "宝象国", new Point(12, 8), new Point(83, 2));
        addSceneTeleport(new Point(18, 123), "太岁府", new Point(54, 4), new Point(17, 125));
        addRoomTeleport(new Point(18, 123), "太岁府", new Point(54, 4), new Point(17, 125));
    }

    public static void main(String[] args) {
        new QiLinShanSceneBuilder().execute("qilinshan_scene.json", "麒麟山");
    }
}